home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_waterfallcam.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  58 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_waterfallCam.cog
  4. #
  5. #
  6. # [GGJ]
  7. #
  8. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  9. #
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. message    crossed
  15. message    startup
  16.  
  17. surface waterfall
  18.  
  19. sound    swimMus=mus_lag_uwatertemple.wav    local
  20. thing    camera0                                        
  21. thing    player                local
  22. int        curCam                local                    
  23.  
  24. end
  25. # ========================================================================================
  26. code
  27.  
  28. startup:
  29. player = GetLocalPlayerThing();
  30. return;
  31.  
  32. crossed:
  33.  
  34. StartCutscene(0);
  35. SetActorFlags(player, 0x200000);
  36.  
  37. curCam = GetCurrentCamera();
  38.  
  39. SetCameraLookInterp(2, 0);
  40. SetCameraPosInterp(2, 0);
  41. ResetCameraFOV(0, 0.0);
  42. SetCameraFocus (2, camera0);
  43. SetCameraSecondaryFocus(2, player);
  44. SetCurrentCamera(2);
  45.  
  46. Sleep(2.0);
  47.  
  48. PlaySoundLocal(swimMus, 1, 0, 0x0, 0);
  49.  
  50. SetCurrentCamera(curcam);
  51.  
  52. ClearActorFlags(player, 0x200000);
  53.  
  54. EndCutscene();
  55.  
  56. return;
  57. end
  58.